package com.magicsharpmod;

import com.magicsharpmod.block.ModBlocks;
import com.magicsharpmod.item.ModItemGroup;
import com.magicsharpmod.item.ModItems;
import net.fabricmc.api.ModInitializer;

import net.fabricmc.fabric.api.registry.FuelRegistry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MagicSharpMod implements ModInitializer {
	// This logger is used to write text to the console and the log file.
	// It is considered best practice to use your mod id as the logger's name.
	// That way, it's clear which mod wrote info, warnings, and errors.
	public static final String MOD_ID = "magicsharpmod";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);//这里应该是一个日志文件，然后一个日志文件九代表着我要为这个对象提供监视服务，Logger
	@Override
	public void onInitialize() {
		// This code runs as soon as Minecraft is in a mod-load-ready state.
		// However, some things (like resources) may still be uninitialized.
		// Proceed with mild caution.
		LOGGER.info("Hello Fabric world!");
		ModItems.registerModItems();
		ModItemGroup.registerModItemGroup();
		ModBlocks.registerModBlocks();

		FuelRegistry.INSTANCE.add(ModItems.WOODS,2000);//燃料要在总mod注册地注册
	}
}